/*
 * @Author: lg
 * @Date: 2024-05-21 09:06:17
 * @LastEditors: lg
 * @LastEditTime: 2024-05-23 15:16:02
 * @Description:
 * @FilePath: \bi-main\src\views\design-center\store\component-config.js
 */
import { defineStore } from 'pinia';
// 设置大屏仓库
const useComponentConfig = defineStore('component-config', {
  state: () => ({
    //主屏配置
    pageConfig: {
      name: '第一个大屏',
      w: '1920',
      h: '1080',
      bgImgUrl: '',
      list: []
    },
    //子屏配置
    childPageConfig: [],
    currentCompoId: '', //当前高亮的组件-后期可能替换为多选的组件
    checkMoreCompoList: [] //按ctrl多选的组件
  }),
  actions: {
    setPageConfig(v) {
      this.pageConfig = v;
    }
  }
});

export default useComponentConfig;
